<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>房屋信息详情</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">

    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">

    <link rel="shortcut icon" href="../img/favicon.ico">

    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../plugins/ionicons/css/ionicons.min.css">
    <link rel="stylesheet" href="../plugins/iCheck/square/blue.css">
    <link rel="stylesheet" href="../plugins/morris/morris.css">
    <link rel="stylesheet" href="../plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <link rel="stylesheet" href="../plugins/datepicker/datepicker3.css">
    <link rel="stylesheet" href="../plugins/daterangepicker/daterangepicker.css">
    <link rel="stylesheet" href="../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    <link rel="stylesheet" href="../plugins/datatables/dataTables.bootstrap.css">
    <link rel="stylesheet" href="../plugins/treeTable/jquery.treetable.css">
    <link rel="stylesheet" href="../plugins/treeTable/jquery.treetable.theme.default.css">
    <link rel="stylesheet" href="../plugins/select2/select2.css">
    <link rel="stylesheet" href="../plugins/colorpicker/bootstrap-colorpicker.min.css">
    <link rel="stylesheet" href="../plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../plugins/ionslider/ion.rangeSlider.css">
    <link rel="stylesheet" href="../plugins/ionslider/ion.rangeSlider.skinNice.css">
    <link rel="stylesheet" href="../plugins/bootstrap-slider/slider.css">
    <link rel="stylesheet" href="../plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.css">
    <link rel="stylesheet" href="../plugins/swiper/swiper-bundle.min.css">
    <link rel="stylesheet" href="../plugins/bootstrap-start/css/star-rating.css" media="all" rel="stylesheet"
          type="text/css">
    <script src="../plugins/swiper/swiper-bundle.min.js"></script>
    <style type="text/css">
        body, html {
            background-color: white;
        }

        .swiper {
            width: 100%;
            height: 400px;
        }

        #messageContent::-webkit-scrollbar {
            display: none;
        }

    </style>
</head>
<body class="hold-transition skin-purple sidebar-mini">
<div class="wrapper">

    <!-- 头部+导航侧栏 -->
    <div id="page-head"></div>
    <!-- 头部+导航侧栏  /-->

    <!-- 内容区域 -->
    <div class="content-wrapper">

        <!-- 内容头部 -->
        <section class="content-header" style="background-color: white;">
            <h1>
                购买房屋
                <small>详细信息</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li><a href="all-order-manage-list.html">购买房屋</a></li>
                <li class="active">详细信息</li>
            </ol>
        </section>
        <!-- 内容头部 /-->
        <div class="content" style="background-color: white">
            <div class="container-fluid" style="margin-top: 10px;margin-bottom: 10px;">
                <div class="row">
                    <div class="col-md-5">
                        <div class="swiper">
                            <!--                            <div class="swiper-wrapper">-->
                            <!--轮播图片-->
                            <!--                                <div class="swiper-slide">-->
                            <img style="width: 100%;height: 100%;"
                                 id="houseImages" src="../img/house1.jpg">
                            <!--                                </div>-->
                            <!--                                <div class="swiper-slide"><img style="width: 100%;height: 100%;"-->
                            <!--                                                               src="../img/house2.jpg"></div>-->
                            <!--                                <div class="swiper-slide"><img style="width: 100%;height: 100%;"-->
                            <!--                                                               src="../img/house3.jpg"></div>-->
                            <!--                                <div class="swiper-slide"><img style="width: 100%;height: 100%;"-->
                            <!--                                                               src="../img/house4.jpg"></div>-->
                            <!--                            </div>-->
                            <!--                            &lt;!&ndash; 分页器 &ndash;&gt;-->
                            <!--                            <div class="swiper-pagination"></div>-->
                            <!--                            &lt;!&ndash; 导航按钮 &ndash;&gt;-->
                            <!--                            <div class="swiper-button-prev" style="color: #c9c9c9;"></div>-->
                            <!--                            <div class="swiper-button-next" style="color: #c9c9c9;"></div>-->
                            <!--                            <script>-->
                            <!--                                var mySwiper = new Swiper('.swiper', {-->
                            <!--                                    direction: 'horizontal', // 垂直切换选项-->
                            <!--                                    loop: true, // 循环模式选项-->
                            <!--                                    //分页器-->
                            <!--                                    pagination: {-->
                            <!--                                        el: '.swiper-pagination',-->
                            <!--                                    },-->
                            <!--                                    // 前进后退按钮-->
                            <!--                                    navigation: {-->
                            <!--                                        nextEl: '.swiper-button-next',-->
                            <!--                                        prevEl: '.swiper-button-prev',-->
                            <!--                                    },-->
                            <!--                                    autoplay: {-->
                            <!--                                        delay: 4000,-->
                            <!--                                        disableOnInteraction: false,-->
                            <!--                                        waitForTransition: false,-->
                            <!--                                    },-->
                            <!--                                })-->
                            <!--                            </script>-->
                        </div>
                    </div>
                    <!--                <div class="col-md-1"></div>-->
                    <div class="col-md-7"
                         style="min-height: 400px;box-shadow:0 0 0 0,3px 0 3px #d5d5d5,0 3px 3px #e2e2e2,0 0 0 0;">
                        <div class="container-fluid">
                            <div class="row" style="border-bottom: 1px solid #c7c7c7;height: 80px;">
                                <div class="col-md-12">
                                    <span style="font-size: 30px;color: red;line-height: 80px;font-weight: bolder;"
                                          id="housePrice"></span>

                                    <span style="float: right;">
                                        <span style="font-size: 30px;color: red;line-height: 80px;font-weight: bolder;"
                                              id="houseScore"></span>
                                    <span>评分</span>
                                    </span>
                                </div>
                            </div>
                            <div class="row" style="border-bottom: 1px solid #c7c7c7;margin-top: 15px;">
                                <div class="col-md-4">
                                    <p style="font-size: 10px;color: grey;">户型</p>
                                    <p style="font-size: 15px;color: black;" id="houseDwellingSize"></p>
                                </div>
                                <div class="col-md-4">
                                    <p style="font-size: 10px;color: grey;">面积</p>
                                    <p style="font-size: 15px;color: black;" id="houseArea"></p>
                                </div>
                                <div class="col-md-4">
                                    <p style="font-size: 10px;color: grey;">楼层</p>
                                    <p style="font-size: 15px;color: black;" id="houseUnitHeight">中层</p>
                                </div>
                                <div class="col-md-4">
                                    <p style="font-size: 10px;color: grey;">类型</p>
                                    <p style="font-size: 15px;color: black;" id="houseType">公寓</p>
                                </div>
                                <div class="col-md-4">
                                    <p style="font-size: 10px;color: grey;">发布时间</p>
                                    <p style="font-size: 15px;color: black;" id="houseCreateTime"></p>
                                </div>
                                <div class="col-md-4">
                                    <p style="font-size: 10px;color: grey;">更新时间</p>
                                    <p style="font-size: 15px;color: black;" id="houseUpdateTime"></p>
                                </div>
                            </div>
                            <div class="row" style="border-bottom: 1px solid #c7c7c7;margin-top: 15px;">
                                <div class="col-md-12">
                                    <p style="font-size: 10px;color: grey;">房屋地址</p>
                                    <p style="font-size: 15px;color: black;" id="houseAddress"></p>
                                </div>
                            </div>
                            <div class="row" style="margin-top: 15px;">
                                <div class="col-md-2">
                                    <p style="font-size: 10px;color: grey;">房东姓名</p>
                                </div>
                                <div class="col-md-10">
                                    <p style="font-size: 15px;color: black;" id="houseOwner"></p>
                                </div>
                                <div class="col-md-2">
                                    <p style="font-size: 10px;color: grey;">联系电话</p>
                                </div>
                                <div class="col-md-10">
                                    <p style="font-size: 15px;color: black;" id="houseTel"></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--                <div class="row">-->
                <!--                    &lt;!&ndash;房屋信息&ndash;&gt;-->
                <!--                    <div class="col-md-12">-->
                <!--                        <div class="panel-heading">房屋信息</div>-->
                <!--                        <div class="row data-type">-->

                <!--                            <div class="col-md-2 title">房屋编号</div>-->
                <!--                            <div class="col-md-4 data text" id="serialNumber">-->

                <!--                            </div>-->

                <!--                            <div class="col-md-2 title">房东姓名</div>-->
                <!--                            <div class="col-md-4 data text" id="houseOwner">-->

                <!--                            </div>-->

                <!--                            <div class="col-md-2 title">房屋地址</div>-->
                <!--                            <div class="col-md-4 data text" id="houseAddress">-->

                <!--                            </div>-->

                <!--                            <div class="col-md-2 title">楼层</div>-->
                <!--                            <div class="col-md-4 data text" id="houseUnitHeight">-->

                <!--                            </div>-->

                <!--                            <div class="col-md-2 title">面积</div>-->
                <!--                            <div class="col-md-4 data text" id="houseArea">-->

                <!--                            </div>-->
                <!--                            <div class="col-md-2 title">类型</div>-->
                <!--                            <div class="col-md-4 data text" id="houseType">-->

                <!--                            </div>-->

                <!--                            <div class="col-md-2 title">户型</div>-->
                <!--                            <div class="col-md-4 data text" id="houseDwellingSize">-->

                <!--                            </div>-->
                <!--                            <div class="col-md-2 title">发布时间</div>-->
                <!--                            <div class="col-md-4 data text" id="houseCreateTime">-->

                <!--                            </div>-->

                <!--                            <div class="col-md-2 title">价格</div>-->
                <!--                            <div class="col-md-4 data text" id="housePrice">-->

                <!--                            </div>-->
                <!--                            <div class="col-md-2 title">更新时间</div>-->
                <!--                            <div class="col-md-4 data text" id="houseUpdateTime">-->
                <!--                            </div>-->
                <!--                            <div class="col-md-2 title">联系电话</div>-->
                <!--                            <div class="col-md-4 data text" id="houseTel">-->
                <!--                            </div>-->
                <!--                            <div class="col-md-2 title">评分</div>-->
                <!--                            <div class="col-md-4 data text" id="houseScore">-->
                <!--                            </div>-->
                <!--                            <div class="col-md-2 title rowHeight2x">房屋概况</div>-->
                <!--                            <div class="col-md-10 data  rowHeight2x" id="houseDescription">-->
                <!--                            </div>-->
                <!--                        </div>-->
                <!--                    </div>-->
                <!--                    &lt;!&ndash;房屋信息/&ndash;&gt;-->
                <!--                </div>-->
                <div class="row" style="margin-top: 20px;">
                    <div class="col-md-12">
                        <ul class="nav nav-tabs">
                            <li role="presentation" class="active"><a href="javascript:void(0)">房屋概况</a></li>
                        </ul>
                    </div>
                    <div class="col-md-12">
                        <div class="panel-body" id="houseDescription">
                            出租，无中介费，小区门油方桥，S3号线地铁口合租房，房子位置于莲花新诚嘉园，只租18到35岁的年龄，不养宠物，爱干净，好相处的，房间能做饭，有冰箱，水电费都是平摊的，房间轮流打扫卫生，等楼下有超市。
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <ul class="nav nav-tabs">
                            <li role="presentation" class="active"><a href="javascript:void(0)">评分</a></li>
                        </ul>
                    </div>
                    <div class="col-md-12">
                        <div class="input-group">
                            <input id="score" value="0" type="number" class="rating form-control" min=0 max=5 step=1
                                   data-size="md">
                            <span class="input-group-btn">
                                <button id="scoreButton" class="btn btn-default" type="button">评分</button>
                            </span>
                        </div>
                    </div>
                </div>
                <!--                <div class="row" style="background-color: white;">-->
                <!--                    <div class="col-md-12">-->
                <!--                        <div class="panel panel-default">-->
                <!--                            <div class="panel-heading">评分</div>-->
                <!--                            <div class="row data-type">-->
                <!--                                <div class="col-md-2 title">请选择分数</div>-->
                <!--                                <div class="col-md-4 data text">-->
                <!--                                </div>-->
                <!--                                <div class="col-md-6 title">-->
                <!--                                    <button type='button'  value="评分" class='btn btn-success'-->
                <!--                                            style="width: 400px">-->
                <!--                                        提交-->
                <!--                                    </button>-->
                <!--                                </div>-->
                <!--                            </div>-->
                <!--                        </div>-->
                <!--                    </div>-->
                <!--                </div>-->

                <!-- 留言状态-->
                <div class="row" style="margin-top: 20px;">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="box-header panel-heading">
                                <h3 class="box-title">留言板</h3>
                                <div class="box-tools pull-right">
                                        <span data-toggle="tooltip" title="" class="badge bg-light-blue"
                                              data-original-title="New Messages" id="messageNum">0</span>
                                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                                    </button>
                                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i>
                                    </button>
                                </div>
                            </div>
                            <!-- /.box-header -->
                            <div class="panel-body">
                                <!-- Conversations are loaded here -->
                                <div class="direct-chat-messages" id="messageContent">

                                    <!--                            &lt;!&ndash; Message to the right &ndash;&gt;-->
                                    <!--                            <div class="direct-chat-msg right">-->
                                    <!--                                <div class="direct-chat-info clearfix">-->
                                    <!--                                    <span class="direct-chat-name pull-right">崔慧颖</span>-->
                                    <!--                                    <span class="direct-chat-timestamp pull-left">2021-09-02 14:50:38.0 </span>-->
                                    <!--                                </div>-->
                                    <!--                                &lt;!&ndash; /.direct-chat-info &ndash;&gt;-->
                                    <!--                                <img class="direct-chat-img" src="../img/user3-128x128.jpg" alt="message user image">-->
                                    <!--                                &lt;!&ndash; /.direct-chat-img &ndash;&gt;-->
                                    <!--                                <div class="direct-chat-text">-->
                                    <!--                                    我觉得也非常错！！！-->
                                    <!--                                </div>-->
                                    <!--                                &lt;!&ndash; /.direct-chat-text &ndash;&gt;-->
                                    <!--                            </div>-->
                                    <!--                            &lt;!&ndash; /.direct-chat-msg &ndash;&gt;-->
                                </div>
                                <!--/.direct-chat-messages-->

                            </div>
                            <!-- /.box-body -->
                            <div class="panel-body">
                                <form action="#" method="post">
                                    <div class="input-group">
                                        <input type="text" name="message" id="sendMessageContent" placeholder="请输入留言信息"
                                               class="form-control">
                                        <span class="input-group-btn">
                                            <button type="button" class="btn btn-primary"
                                                    id="sendMessage">发送</button>
                                        </span>
                                    </div>

                                </form>
                            </div>
                        </div>

                        <!--                        <div class="box box-primary box-solid direct-chat direct-chat-primary">-->
                        <!--                            <div class="box-header">-->
                        <!--                                <h3 class="box-title">留言信息</h3>-->
                        <!--                                <div class="box-tools pull-right">-->
                        <!--                                        <span data-toggle="tooltip" title="" class="badge bg-light-blue"-->
                        <!--                                  data-original-title="New Messages" id="messageNum">0</span>-->
                        <!--                                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>-->
                        <!--                                    </button>-->
                        <!--                                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i>-->
                        <!--                                    </button>-->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!--                            &lt;!&ndash; /.box-header &ndash;&gt;-->
                        <!--                            <div class="box-body">-->
                        <!--                                &lt;!&ndash; Conversations are loaded here &ndash;&gt;-->
                        <!--                                <div class="direct-chat-messages" id="messageContent">-->

                        <!--                                    &lt;!&ndash;                            &lt;!&ndash; Message to the right &ndash;&gt;&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                            <div class="direct-chat-msg right">&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                <div class="direct-chat-info clearfix">&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                    <span class="direct-chat-name pull-right">崔慧颖</span>&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                    <span class="direct-chat-timestamp pull-left">2021-09-02 14:50:38.0 </span>&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                </div>&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                &lt;!&ndash; /.direct-chat-info &ndash;&gt;&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                <img class="direct-chat-img" src="../img/user3-128x128.jpg" alt="message user image">&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                &lt;!&ndash; /.direct-chat-img &ndash;&gt;&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                <div class="direct-chat-text">&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                    我觉得也非常错！！！&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                </div>&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                                &lt;!&ndash; /.direct-chat-text &ndash;&gt;&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                            </div>&ndash;&gt;-->
                        <!--                                    &lt;!&ndash;                            &lt;!&ndash; /.direct-chat-msg &ndash;&gt;&ndash;&gt;-->
                        <!--                                </div>-->
                        <!--                                &lt;!&ndash;/.direct-chat-messages&ndash;&gt;-->

                        <!--                            </div>-->
                        <!--                            &lt;!&ndash; /.box-body &ndash;&gt;-->
                        <!--                            <div class="box-footer">-->
                        <!--                                <form action="#" method="post">-->
                        <!--                                    <div class="input-group">-->
                        <!--                                        <input type="text" name="message" id="sendMessageContent" placeholder="请输入留言信息"-->
                        <!--                                               class="form-control">-->
                        <!--                                        <span class="input-group-btn">-->
                        <!--                                            <button type="button" class="btn btn-primary btn-flat"-->
                        <!--                                                    id="sendMessage">发送</button>-->
                        <!--                                        </span>-->
                        <!--                                    </div>-->
                        <!--                                </form>-->
                        <!--                            </div>-->
                        <!--                            &lt;!&ndash; /.box-footer&ndash;&gt;-->
                        <!--                        </div>-->
                        <!--/.direct-chat -->
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <!--                        <button type="button" class="btn btn-info" ">返回</button>-->
                        <nav aria-label="...">
                            <ul class="pager">
                                <li><a href="javascript:void(0)" onclick="history.back(-1);">Previous</a></li>
                            </ul>
                        </nav>
                    </div>
                </div>
            </div>


            <!--工具栏-->
            <div class="box-tools text-center">
                <!--                    <button type="button" class="btn bg-maroon">保存</button>-->

            </div>
            <!--工具栏/-->
            <!-- 正文区域 /-->

        </div>
        <!-- 内容区域 /-->

        <!-- 底部导航 -->

        <!-- 底部导航 /-->

    </div>
    <div id="page-footer"></div>


    <script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="../plugins/jQueryUI/jquery-ui.min.js"></script>
    <script>
        $.widget.bridge('uibutton', $.ui.button);
    </script>
    <script src="../plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="../plugins/raphael/raphael-min.js"></script>
    <script src="../plugins/morris/morris.min.js"></script>
    <script src="../plugins/sparkline/jquery.sparkline.min.js"></script>
    <script src="../plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
    <script src="../plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
    <script src="../plugins/knob/jquery.knob.js"></script>
    <script src="../plugins/daterangepicker/moment.min.js"></script>
    <script src="../plugins/daterangepicker/daterangepicker.js"></script>
    <script src="../plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
    <script src="../plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="../plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
    <script src="../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
    <script src="../plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script src="../plugins/fastclick/fastclick.js"></script>
    <script src="../plugins/iCheck/icheck.min.js"></script>
    <script src="../plugins/adminLTE/js/app.min.js"></script>
    <script src="../plugins/treeTable/jquery.treetable.js"></script>
    <script src="../plugins/select2/select2.full.min.js"></script>
    <script src="../plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
    <script src="../plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
    <script src="../plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
    <script src="../plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
    <script src="../plugins/bootstrap-markdown/js/markdown.js"></script>
    <script src="../plugins/bootstrap-markdown/js/to-markdown.js"></script>
    <script src="../plugins/ckeditor/ckeditor.js"></script>
    <script src="../plugins/input-mask/jquery.inputmask.js"></script>
    <script src="../plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
    <script src="../plugins/input-mask/jquery.inputmask.extensions.js"></script>
    <script src="../plugins/datatables/jquery.dataTables.min.js"></script>
    <script src="../plugins/datatables/dataTables.bootstrap.min.js"></script>
    <script src="../plugins/chartjs/Chart.min.js"></script>
    <script src="../plugins/flot/jquery.flot.min.js"></script>
    <script src="../plugins/flot/jquery.flot.resize.min.js"></script>
    <script src="../plugins/flot/jquery.flot.pie.min.js"></script>
    <script src="../plugins/flot/jquery.flot.categories.min.js"></script>
    <script src="../plugins/ionslider/ion.rangeSlider.min.js"></script>
    <script src="../plugins/bootstrap-slider/bootstrap-slider.js"></script>
    <script src="../plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script>
    <script src="../plugins/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="../plugins/bootstrap-start/js/star-rating.js"></script>

    <script>
        $(document).ready(function () {
            //装入头部
            $('#page-head').load('public-head.html', null, function () {
                setSidebarActive("public-rent");
            });
            //装入尾部
            $('#page-footer').load('public-footer.html');
            // 选择框
            $(".select2").select2();

            // WYSIHTML5编辑器
            $(".textarea").wysihtml5({
                locale: 'zh-CN'
            });
        });


        // 设置激活菜单
        function setSidebarActive(tagUri) {
            var liObj = $("#" + tagUri);
            if (liObj.length > 0) {
                liObj.parent().parent().addClass("active");
                liObj.addClass("active");
            }
        }


        $(document).ready(function () {
            $('#datepicker-a3').datepicker({
                autoclose: true,
                language: 'zh-CN'
            });
        });


        $(document).ready(function () {
            $('#datepicker-a6').datepicker({
                autoclose: true,
                language: 'zh-CN'
            });
        });
    </script>

    <script>
        $(function () {
            var dataHouse = "";  //保存的是当前房屋的基本信息
            var userName = "";  //保存用户的姓名

            $(".rating-kv").rating();
            $("#scoreButton").on("click", function () {
                var scoreNow = $("#score").val();  //获取用户的分数
                var idNow = dataHouse.id;
                // alert("提交成功");
                //ajax请求，将分数返回给后台
                $.ajax({
                    url: "/all-order-manage-edit/score/update?" + "id=" + idNow + "&score=" + scoreNow,   //请求路径
                    type: "get",    //请求方式
                    dataType: "json",  //设置接收到数据类型
                    success: function (data) {
                        alert("评分提交成功！")
                        // 处理分页数据
                    },    //成功
                    error: function () {
                        console.log("房屋评分后台数据错误...")
                    }
                })
            })


            //获取url参数
            function getQueryString(name) {
                let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
                let r = window.location.search.substr(1).match(reg);
                if (r != null) {
                    return decodeURIComponent(r[2]);
                }
                ;
                return null;
            }

            //获取url的id参数
            var nowId = getQueryString("id");
            // alert(id);
            //默认发请求
            $.ajax({
                url: "/all-order-manage-edit/" + nowId,   //请求路径
                type: "get",    //请求方式
                dataType: "json",  //设置接收到数据类型
                success: function (data) {
                    console.log(data);
                    dataHouse = JSON.parse(data);   //保存基本信息
                    //填充表格
                    handleHouseDetails(data);
                    //填充留言信息
                    ajaxGetMessageByUuid(data);
                    // 处理分页数据
                },    //成功
                error: function () {
                    console.log("房屋信息通过id后台获取数据错误...")
                }
            })

            //填充房屋基本信息表格数据
            function handleHouseDetails(data) {
                var houseDetails = JSON.parse(data);
                $("#serialNumber").html(houseDetails.userUuid); //改uuid
                $("#houseOwner").html(houseDetails.userName); //改姓名
                $("#houseAddress").html(houseDetails.address); //改地址
                $("#houseUnitHeight").html(houseDetails.unitHeight); //改楼层
                $("#houseArea").html(houseDetails.area); //改面积
                $("#houseType").html(houseDetails.type); //改类型
                $("#houseDwellingSize").html(houseDetails.dwellingSize); //改户型
                $("#houseCreateTime").html(houseDetails.createTime); //改发布时间
                $("#housePrice").html(houseDetails.price); //改发布时间
                $("#houseUpdateTime").html(houseDetails.updateTime); //改发布时间
                $("#houseTel").html(houseDetails.tel); //改发布时间
                $("#houseScore").html(houseDetails.score); //改发布时间
                $("#houseDescription").html(houseDetails.description); //改发布时间
                if (houseDetails.houseImage != undefined && houseDetails.houseImage !="") {
                    console.log("加载图片！");
                    console.log(houseDetails.houseImage);
                    // $("#houseImages").attr("src", "../imagesUpload/" + houseDetails.houseImage); //改发布时间
                    document.getElementById('houseImages').setAttribute("src", "../imagesUpload/" + houseDetails.houseImage);
                    // $("#preview_photo").attr("src", data.filepath+data.filename);
                } else {
                    console.log("该房屋信息图片为空，使用默认图片！");
                }

            }

            //通过ajax处理通过uuid查询后台留言信息
            function ajaxGetMessageByUuid(data) {
                var houseDetails = JSON.parse(data);
                var uuid = houseDetails.userUuid;
                $.ajax({
                    url: "/all-order-manage-edit/uuid/message?uuid=" + uuid,   //请求路径
                    type: "get",    //请求方式
                    dataType: "json",  //设置接收到数据类型
                    success: function (data) {
                        console.log("返回的留言信息:" + data);
                        houseMessage(data);
                        // 处理分页数据
                    },    //成功
                    error: function () {
                        console.log("房屋留言信息通过uuid后台获取数据错误...")
                    }
                })
            }

            //填充前端查询的留言信息
            function houseMessage(data) {
                var message = JSON.parse(data);
                var len = Object.keys(message).length;  //留言的长度
                $("#messageNum").html(len);
                for (let i = 0; i < len; i++) {
                    var dataOne = " <div class=\"direct-chat-msg\">\n" +
                        "                                <div class=\"direct-chat-info clearfix\">\n" +
                        "                                    <span class=\"direct-chat-name pull-left\">" + message[i].userName + "</span>\n" +
                        "                                    <span class=\"direct-chat-timestamp pull-right\">" + message[i].createTime + "</span>\n" +
                        "                                </div>\n" +
                        "                                <!-- /.direct-chat-info -->\n" +
                        "                                <img class=\"direct-chat-img\" src=\"../img/user1-128x128.jpg\" alt=\"message user image\">\n" +
                        "                                <!-- /.direct-chat-img -->\n" +
                        "                                <div class=\"direct-chat-text\">\n" +
                        message[i].description +
                        "                                </div>\n" +
                        "                                <!-- /.direct-chat-text -->\n" +
                        "                            </div>"

                    $("#messageContent").append(dataOne);
                }
            }

            //获取当前用户的姓名
            $.ajax({
                url: "/all-order-manage-edit/message/user",   //请求路径
                type: "get",    //请求方式
                dataType: "json",  //设置接收到数据类型
                success: function (data) {
                    // console.log("返回的留言信息:" + data);
                    var jsonData = JSON.parse(data);
                    userName = jsonData.userName;
                    // 处理分页数据
                },    //成功
                error: function () {
                    console.log("获取姓名失败...")
                }
            })


            //将用户的留言信息报错并发从给后台
            $("#sendMessage").on("click", function () {
                var content = $("#sendMessageContent").val();  //内容
                // alert(content);
                //处理时间格式化

                var name = userName;    //名字
                var uuid = dataHouse.userUuid;
                Date.prototype.Format = function (fmt) {
                    var o = {
                        "M+": this.getMonth() + 1, //月份
                        "d+": this.getDate(), //日
                        "H+": this.getHours(), //小时
                        "m+": this.getMinutes(), //分
                        "s+": this.getSeconds(), //秒
                        "q+": Math.floor((this.getMonth() + 3) / 3), //季度
                        "S": this.getMilliseconds() //毫秒
                    };
                    if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
                    for (var k in o)
                        if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
                    return fmt;
                }
                var myDate = new Date().Format("yyyy-MM-dd HH:mm:ss");  //时间
                //先ajax的post请求发送给后台存储

                var dataJson = {
                    "userUuid": uuid,
                    "userName": name,
                    "description": content,
                    "createTime": myDate,
                    "updateTime": myDate
                }
                //发post请求
                $.ajax({
                    url: "/all-order-manage-edit/message/add",   //请求路径
                    type: "post",    //请求方式，这里应该用post，返回给后台分页是数据：当前页，每页的大小
                    data: JSON.stringify(dataJson),
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",  //设置接收到数据类型
                    success: function (data) {
                        // console.log(data);
                        // 处理分页数据
                        console.log("留言信息增加成功！");
                    },    //成功
                    error: function () {
                        console.log("增加留言信息失败...")
                    }
                })

                //在响应到前台
                var dataOne = " <div class=\"direct-chat-msg right\">\n" +
                    "                                <div class=\"direct-chat-info clearfix\">\n" +
                    "                                    <span class=\"direct-chat-name pull-right\">" + name + "</span>\n" +
                    "                                    <span class=\"direct-chat-timestamp pull-left\">" + myDate + "</span>\n" +
                    "                                </div>\n" +
                    "                                <!-- /.direct-chat-info -->\n" +
                    "                                <img class=\"direct-chat-img\" src=\"../img/user3-128x128.jpg\" alt=\"message user image\">\n" +
                    "                                <!-- /.direct-chat-img -->\n" +
                    "                                <div class=\"direct-chat-text\">\n" +
                    content +
                    "                                </div>\n" +
                    "                                <!-- /.direct-chat-text -->\n" +
                    "                            </div>"

                $("#messageContent").append(dataOne);
            })


        })


    </script>

</div>
</body>
</html>